package org.jmat.domain.entities;


import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * The class represents a Cat
 * @author Mathieu Chatelain
 */


@Entity(name="Cat")
@DiscriminatorValue("CAT")
@AttributeOverride(
		name="id",
		column=@Column(name="id_cat"))
public class Cat extends Animal {

	private static final long serialVersionUID = -6471663308866311036L;
	private CatRace race;
	
	public Cat(){
	}

	@Enumerated(EnumType.STRING)
	public CatRace getRace() {
		return race;
	}
	
	public void setRace(CatRace race) {
		this.race = race;
	}

	
	
}
